import {
  GETNOBASE
} from './api'

// 获取全国JSON
export const getChinaJson = (params) => GETNOBASE('/map/china.json', params)

// 获取省JSON
export const getProvinceJson = (path, params) => GETNOBASE(`/map/province/${path}.json`, params)

// 获取市JSON
export const getCityJson = (path, params) => GETNOBASE(`/map/city/${path}.json`, params)

// 获取县JSON
export const getDistrictJson = (path, params) => GETNOBASE(`/map/county/${path}.json`, params)

export {
  GETNOBASE
}
